<%= form_for @smart_proxy do |f| %>
  <%= base_errors_for @smart_proxy %>
  <ul class="nav nav-tabs" data-tabs="tabs">
    <li class="active"><a href="#primary" data-toggle="tab"><%= _("Smart Proxy") %></a></li>
    <% if show_location_tab? %>
      <li><a href="#locations" data-toggle="tab"><%= _("Locations") %></a></li>
    <% end %>

    <% if show_organization_tab? %>
      <li><a href="#organizations" data-toggle="tab"><%= _("Organizations") %></a></li>
    <% end %>
  </ul>
  <div class="tab-content">
    <div class="tab-pane active" id="primary">
      <%= text_f(f, :name, :help_inline => _("Must be unique")) %>
      <%= text_f(f, :url, :label => _("URL"), :help_inline => _("HTTPS endpoint"), :label_help => _("Hostname and client certificate must be valid. Ports are typically 8443 or 9090."), :size => "col-md-8" ) %>
    </div>

    <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @smart_proxy %>

    <%= submit_or_cancel f %>
  </div>
<% end %>
